package cn.stylefeng.guns.sys.modular.system.service;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.Map;

public interface LoginService {

    /**
     * 获取wxOpenId
     * @return
     * @throws ServletException
     * @throws IOException
     */
//    public Map get(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException;
    public Map get(String code) throws ServletException, IOException;

    public Map getCode(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException;

}
